package com.crm.business.crm.controller;


import com.crm.business.crm.service.BillNoticeService;
import com.crm.common.crm.entity.PO.BillNotice;
import com.crm.common.ka.core.common.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/notice")
public class BillNoticeController {


    @Autowired
    private BillNoticeService billNoticeService;

    @GetMapping("/getNew")
    @ApiOperation("获取最新公告")
    public Result<BillNotice> getNew() {
        BillNotice notice = billNoticeService.getNew();
        return Result.ok(notice);
    }

}
